import request from '@/utils/axios/axios-service.ts'

/**
 * 商户资金接口
 */
export const merchantWalletList = (params: any) => request.get('/merchant/wallet/list', {params: params})

export const merchantBalanceLogList = (params: any) => request.get('/merchant/wallet/balance_logs', {params: params})

/**
 * 商户结算接口
 */
export const merchantSettlementList = (params: any) => request.get('/merchant/settlement/list', {params: params})
export const merchantSettlementInfo = (id: number) => request.get('/merchant/settlement/info/' + id)
export const merchantSettlementApply = (params: any) => request.post('/merchant/settlement/apply', params)
export const merchantSettlementAction = (params: any) => request.post('/merchant/settlement/action', params)

export type MerchantSettlement = {
  id: number;
  shop_id: number;
  shop_type: number;
  status: number;
  amount: number;
  account_type: number;
  account_no: string;
  account_name: string;
  bank_name: string;
  branch_name: string;
  payment_voucher: string;
  payment_time: string;
  audit_time: string;
  audit_reason: string;
};
